package Negocio;

import java.util.Vector;

public class factura {
private int mes;
private int anio;
private int numero;
private Vector<itemFactura> items;

public factura(int m, int a, int n){
	mes = m;
	anio = a;
	numero = n;
	items = new Vector<itemFactura>();
}
public void agregarItem(itemFactura i){
	items.add(i);
}
public int getMes(){
	return mes;
}
public int getAnio(){
	return anio;
}
public int getNumero(){
	return numero;
}
public Vector<itemFactura> getItems(){
	return items;
}
public float getTotal(){
	int i = 0;
	float Total = 0;
	while (i<items.size()){
		Total = Total + items.get(i).getSubtotal();
		
		i++;
	}
	return Total;
}

}
